<html xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
<head>
    <title>Title</title>
</head>
<body>
<h1>我是后台页面
    &nbsp;&nbsp;&nbsp;欢迎<span th:text="${user.realname}"></span>登录&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        [<form action="/logout" method="post">
                <input type="hidden"
                       th:name="${_csrf.parameterName}"
                       th:value="${_csrf.token}"/>
                <input class="full-width" type="submit" value="注销">
            </form>]</h1>
    <p>

        <a href="/add" sec:authorize-url="/add">添加</a>

        <a href="/del" sec:authorize-url="/del">删除</a>

        <a href="/update" sec:authorize-url="/update">修改</a>

        <a href="/query" sec:authorize-url="/query">查询</a>

    </p>
</body>
</html>
